<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			div {
				display: flex;
				width: 800px;
				height: 400px;
				background-color: antiquewhite;
				/* 默认是不换行，如果装不下，就会缩小子元素的宽度 */
				flex-wrap: wrap;
				
				/* 有了换行后，可以通过align-content设置子元素的对齐方式 */
				
				/* align-content: flex-start; */
				/* align-content: flex-end; */
				/* align-content: center; */
				/* align-content: space-around; */
				/* align-content: space-between; */
			}

			div span {
				width: 150px;
				height: 100px;
				background-color: orange;
				margin: 2px;
			}
		</style>
	</head>
	<body>
		<div>
			<span>1</span>
			<span>2</span>
			<span>3</span>
			<span>4</span>
			<span>5</span>
			<span>6</span>
		</div>
	</body>
</html>
